<template>
  <el-select class="ks-select" v-model="listItem" :placeholder="placeholder">
    <el-option
        v-for="item in options"
        :key="item.value"
        :label="item.label"
        :value="item.value"
    />
  </el-select>
</template>

<script>
export default {
  name:'KsSelect',
  props:{
    // 占位符
    placeholder:{
      type:String,
      default:"",
      required:true
    },
    // 接口请对地址 如果有这个 代表启用远程搜索功能
    apiUrl:{
      type:String,
      default:''
    },
    method: {
      type: String,
      default: () => { return 'get' }
    }
  },
  data() {
    return {
      listItem: null,
      options: []
    }
  },
  watch:{

  },
  created() {
    console.log(1)

  },
  methods: {

  }
}
</script>
